package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.common.Uzer;

public interface UserService {

    void initUsers();

    List<Uzer> likeByUsername(String username, long first, long size);

    long countLikeByUsername(String username);

    Uzer findByUsername(String username);

    Uzer findByUsernameAndPassword(String username, String password);

    List<Uzer> findByDepartment(int department);

    boolean existUsername(String username);

    void save(Uzer user);

    void delete(Uzer user);

    Uzer findById(long id);

    List<Uzer> findAll();

    long countAll();

}
